package cc.lj.internal.coupons.interfaces.dto.convert;

import cc.lj.internal.coupons.domain.ticket.model.vo.TicketPackageDO;
import cc.lj.internal.coupons.interfaces.dto.TicketPackageDTO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * 券包表 DTO DO 转换
 * @author liangxifeng
 * @date 2023/8/25 15:33
 */
@Mapper
public interface TicketPackageDTOConvertDO {
    TicketPackageDTOConvertDO INSTANCE = Mappers.getMapper(TicketPackageDTOConvertDO.class);

    //DO to DTO
    TicketPackageDTO convert(TicketPackageDO ticketPackageDO);
    //DTO to DO
    TicketPackageDO convert(TicketPackageDTO ticketPackageDO);
}
